package com.paypalpay.util.wx;

import org.springframework.stereotype.Component;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;
public class CommonResponse {
	public static void response(String content, HttpServletResponse response) throws Exception {
		response.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");
		PrintWriter out;
		out = response.getWriter();
		out.print(content);
		out.flush();
		out.close();
		System.out.println("公众号回传内容:" + content);
	}
}
